/* Passe V3: o mesmo Arquivo Shinobi modular de Personagens e Jutsus. */
.nrmt-pass-overlay {
  padding: clamp(24px, 4vh, 46px) clamp(24px, 3vw, 56px) !important;
  background:
    radial-gradient(circle at 54% 9%, rgba(121, 191, 216, .07), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(184, 79, 61, .06), transparent 35%),
    rgba(1, 4, 6, .91) !important;
  backdrop-filter: blur(5px) saturate(.78) !important;
  -webkit-backdrop-filter: blur(5px) saturate(.78) !important;
}

body .nrmt-pass-window.nrmt-pass-v2.nrmt-ui-ornate-window {
  box-sizing: border-box !important;
  width: min(1450px, calc(100vw - 56px)) !important;
  max-width: none !important;
  height: min(820px, calc(100dvh - 48px)) !important;
  max-height: none !important;
  padding: 27px 25px 24px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 3px !important;
  background:
    radial-gradient(circle at 73% 0, rgba(121, 191, 216, .065), transparent 31%),
    linear-gradient(145deg, #0e1417, #050809 70%) !important;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .86), 0 0 40px rgba(199, 149, 69, .08) !important;
}

body .nrmt-pass-window > .nrmt-ui-ornate-frame-layer {
  inset: 0 !important;
  z-index: 80;
  border-width: 30px !important;
  border-image-slice: 126 118 !important;
  border-image-width: 30px !important;
}

.nrmt-pass-window > :not(.nrmt-ui-ornate-frame-layer) {
  position: relative;
  z-index: 2;
}

body .nrmt-pass-header {
  box-sizing: border-box !important;
  flex: 0 0 92px !important;
  height: 92px !important;
  min-height: 92px !important;
  grid-template-columns: minmax(280px, 1fr) auto 40px !important;
  gap: 12px !important;
  padding: 13px 16px 13px 22px !important;
  overflow: hidden !important;
  border: 1px solid rgba(199, 149, 69, .3) !important;
  border-radius: 2px !important;
  background-image:
    linear-gradient(90deg, rgba(3, 7, 9, .98) 0%, rgba(3, 8, 10, .88) 40%, rgba(4, 8, 10, .4) 72%, rgba(5, 8, 9, .82) 100%),
    url('/assets/branding/shinobi-archive-ui-v3/characters-archive-keyart-v3.png?v=1') !important;
  background-position: center, center 50% !important;
  background-size: cover, cover !important;
  box-shadow: inset 0 -1px rgba(199, 149, 69, .3), 0 8px 22px rgba(0, 0, 0, .48) !important;
}

body .nrmt-pass-header::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-image-source: var(--nrmt-archive-panel-frame);
  border-image-slice: 104 122;
  border-image-width: 14px;
  pointer-events: none;
}

body .nrmt-pass-header > * { position: relative; z-index: 3; }

body .nrmt-pass-header > div:first-child {
  align-self: center;
  min-width: 0;
  padding: 4px 10px;
}

body .nrmt-pass-header > div:first-child small {
  color: #b4aa97 !important;
  font-size: 7px !important;
  letter-spacing: .18em !important;
}

body .nrmt-pass-header h2 {
  margin: 5px 0 0 !important;
  color: #f0ca7a !important;
  font-size: 23px !important;
  line-height: 1 !important;
  text-shadow: 0 2px #1c1207, 0 0 14px rgba(199, 149, 69, .2) !important;
}

body .nrmt-pass-header > [data-pass-vip-status] {
  align-self: center;
  min-width: 190px;
  min-height: 38px;
  padding-inline: 18px !important;
}

body .nrmt-pass-header > [data-pass-vip-status].owned {
  color: #bce7ca !important;
  filter: none !important;
}

body .nrmt-pass-header > [data-pass-close] { align-self: center; }

body .nrmt-pass-hero {
  position: relative;
  flex: 0 0 142px !important;
  grid-template-columns: 104px minmax(0, 1fr) 112px !important;
  gap: 18px !important;
  margin-top: 10px;
  padding: 16px 24px !important;
  overflow: hidden !important;
  border: 1px solid transparent !important;
  border-image-source: var(--nrmt-archive-panel-frame) !important;
  border-image-slice: 104 122 !important;
  border-image-width: 14px !important;
  border-image-repeat: stretch !important;
  background:
    linear-gradient(90deg, rgba(5, 10, 12, .94), rgba(8, 14, 16, .78) 50%, rgba(5, 9, 11, .92)),
    url('/assets/branding/shinobi-archive-ui-v3/jutsus-technique-keyart-v3.png?v=1') center 52% / cover !important;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, .54), 0 7px 18px rgba(0, 0, 0, .4) !important;
}

body .nrmt-pass-hero::before {
  content: "火";
  right: 155px;
  top: -76px;
  color: rgba(240, 202, 122, .055);
  font-size: 245px;
}

body .nrmt-pass-seal {
  width: 82px;
  height: 82px;
  border-color: rgba(199, 149, 69, .72);
  background: radial-gradient(circle, #7f3021 0 36%, #291916 37% 54%, #0a1012 55%);
  box-shadow: 0 0 0 5px rgba(4, 8, 10, .74), 0 0 28px rgba(184, 79, 61, .28), inset 0 0 17px #000;
}

body .nrmt-pass-hero-copy > small { color: var(--nrmt-archive-blue) !important; letter-spacing: .18em; }

body .nrmt-pass-hero-copy h1 {
  margin: 4px 0 6px;
  color: #ead49c;
  font-size: 20px;
  text-shadow: 0 2px #120c05;
}

body .nrmt-pass-hero-copy p {
  max-width: 760px;
  margin-bottom: 10px;
  color: #9ca8a9;
  font-size: 8px;
}

body .nrmt-pass-v2 .nrmt-pass-progress {
  height: 8px !important;
  border-color: rgba(199, 149, 69, .45) !important;
  background: #030708 !important;
}

body .nrmt-pass-v2 .nrmt-pass-progress > [data-pass-progress] {
  background: linear-gradient(90deg, #9f432f, #d8a94b 62%, #79bfd8) !important;
  box-shadow: 0 0 12px rgba(121, 191, 216, .4) !important;
}

body .nrmt-pass-current {
  width: 96px;
  height: 96px;
  border: 1px solid transparent;
  border-image-source: var(--nrmt-archive-portrait-frame);
  border-image-slice: 112 106;
  border-image-width: 14px;
  background: rgba(5, 10, 12, .9);
}

body .nrmt-pass-current b {
  color: #f0ca7a;
  font-size: 33px;
  text-shadow: 0 0 14px rgba(199, 149, 69, .35);
}

body .nrmt-pass-layout {
  grid-template-columns: 256px minmax(0, 1fr) !important;
  gap: 9px;
  margin-top: 9px;
  border: 0;
  background: transparent;
}

body .nrmt-pass-layout > aside,
body .nrmt-pass-layout > main {
  box-sizing: border-box;
  min-height: 0;
  overflow: hidden;
  border: 1px solid transparent !important;
  border-image-source: var(--nrmt-archive-panel-frame) !important;
  border-image-slice: 104 122 !important;
  border-image-width: 13px !important;
  border-image-repeat: stretch !important;
  background: linear-gradient(145deg, rgba(14, 21, 24, .98), rgba(5, 9, 11, .99)) !important;
}

body .nrmt-pass-layout > aside { padding: 15px !important; overflow-y: auto; }

body .nrmt-pass-layout > aside h3 {
  margin: 2px 0 10px;
  color: #f0ca7a;
  font-size: 9px;
}

body .nrmt-pass-mission {
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: 8px !important;
  min-height: 58px;
  margin-bottom: 7px !important;
  padding: 9px !important;
  border-image-width: 9px !important;
  background: linear-gradient(145deg, #11191c, #070b0d 74%) !important;
}

body .nrmt-pass-mission > i {
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-image-source: var(--nrmt-archive-portrait-frame);
  border-image-slice: 112 106;
  border-image-width: 8px;
  background: #05090b;
}

body .nrmt-pass-mission > i img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

body .nrmt-pass-mission.is-complete {
  box-shadow: inset 3px 0 var(--nrmt-archive-success), 0 5px 14px rgba(0, 0, 0, .35) !important;
}

body .nrmt-pass-layout > aside section {
  border: 1px solid rgba(199, 149, 69, .25);
  border-radius: 2px;
  background: rgba(9, 14, 16, .9);
}

body .nrmt-pass-list-head {
  flex: 0 0 48px;
  height: 48px;
  padding: 0 16px;
  border-bottom-color: rgba(199, 149, 69, .24);
  background: linear-gradient(90deg, rgba(10, 16, 18, .98), rgba(15, 22, 24, .98));
}

body .nrmt-pass-list-head small { color: #f0ca7a; }

body .nrmt-pass-list-head > span {
  border-color: rgba(121, 191, 216, .34);
  background: rgba(8, 20, 23, .88);
  color: #9fd3e0;
}

body .nrmt-pass-v2 .nrmt-pass-dual-list {
  display: block !important;
  padding: 10px 12px 14px !important;
  background:
    radial-gradient(circle at 75% 10%, rgba(121, 191, 216, .04), transparent 32%),
    #070c0e !important;
}

body .nrmt-pass-dual-tier {
  min-height: 94px;
  grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 9px;
  padding: 10px !important;
  border-image-width: 10px !important;
  background: linear-gradient(145deg, #10171a, #060a0c 72%) !important;
  box-shadow: 0 7px 16px rgba(0, 0, 0, .38) !important;
}

body .nrmt-pass-dual-tier.unlocked {
  box-shadow: inset 3px 0 var(--nrmt-archive-blue), 0 7px 16px rgba(0, 0, 0, .38) !important;
}

body .nrmt-pass-dual-tier.locked { filter: saturate(.5); opacity: .65; }
body .nrmt-pass-dual-tier > header { border-right-color: rgba(199, 149, 69, .25); }
body .nrmt-pass-dual-tier > header b { color: #f0ca7a; }

body .nrmt-pass-reward {
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 9px;
  min-height: 72px;
  padding: 10px 11px !important;
  border-image-width: 11px !important;
  background:
    radial-gradient(circle at 15% 45%, rgba(121, 191, 216, .08), transparent 38%),
    linear-gradient(145deg, #11191c, #070b0d 72%) !important;
}

body .nrmt-pass-reward.vip {
  background:
    radial-gradient(circle at 15% 45%, rgba(199, 149, 69, .13), transparent 40%),
    linear-gradient(145deg, #181611, #090c0d 72%) !important;
}

body .nrmt-pass-reward > img {
  width: 54px;
  height: 54px;
  padding: 3px;
  box-sizing: border-box;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 5px 4px #000);
}

body .nrmt-pass-reward div b { color: #e7dcc4; font-size: 8px; }
body .nrmt-pass-reward div span { color: #879394; }
body .nrmt-pass-reward button { min-width: 92px; min-height: 34px; }

body .nrmt-pass-reward.claimed {
  box-shadow: inset 3px 0 var(--nrmt-archive-success), 0 6px 16px rgba(0, 0, 0, .35) !important;
}

body .nrmt-pass-reward.premium-locked::after {
  inset: 5px;
  border: 1px solid rgba(199, 149, 69, .2);
  background: rgba(3, 7, 9, .82);
  color: #e6bd65;
  letter-spacing: .12em;
}

@media (max-width: 1000px) {
  body .nrmt-pass-window.nrmt-pass-v2.nrmt-ui-ornate-window {
    width: calc(100vw - 24px) !important;
    height: calc(100dvh - 24px) !important;
    padding: 22px 20px 20px !important;
  }

  body .nrmt-pass-layout { grid-template-columns: 205px minmax(0, 1fr) !important; }
  body .nrmt-pass-dual-tier { grid-template-columns: 42px minmax(0, 1fr); }
  body .nrmt-pass-reward.vip { grid-column: 2; }
}

@media (max-width: 720px) {
  .nrmt-pass-overlay { padding: 8px !important; }

  body .nrmt-pass-window.nrmt-pass-v2.nrmt-ui-ornate-window {
    width: calc(100vw - 10px) !important;
    height: calc(100dvh - 10px) !important;
    padding: 16px 14px 14px !important;
  }

  body .nrmt-pass-window > .nrmt-ui-ornate-frame-layer {
    border-width: 18px !important;
    border-image-width: 18px !important;
  }

  body .nrmt-pass-header {
    flex-basis: 68px !important;
    height: 68px !important;
    min-height: 68px !important;
    grid-template-columns: minmax(0, 1fr) 34px !important;
    padding: 9px 10px 9px 15px !important;
  }

  body .nrmt-pass-header > [data-pass-vip-status] { display: none !important; }
  body .nrmt-pass-header > div:first-child small { font-size: 5px !important; }
  body .nrmt-pass-header h2 { font-size: 17px !important; }

  body .nrmt-pass-hero {
    flex-basis: 112px !important;
    grid-template-columns: minmax(0, 1fr) 72px !important;
    padding: 13px 16px !important;
  }

  body .nrmt-pass-seal { display: none; }
  body .nrmt-pass-current { width: 66px; height: 66px; }
  body .nrmt-pass-current b { font-size: 25px; }
  body .nrmt-pass-hero-copy h1 { font-size: 15px; }
  body .nrmt-pass-hero-copy p { display: none; }
  body .nrmt-pass-layout { grid-template-columns: 1fr !important; }
  body .nrmt-pass-layout > aside { display: none; }
  body .nrmt-pass-dual-tier { grid-template-columns: 36px minmax(0, 1fr); padding: 7px !important; }
  body .nrmt-pass-reward { grid-template-columns: 46px minmax(0, 1fr); }
  body .nrmt-pass-reward > img { width: 42px; height: 42px; }
  body .nrmt-pass-reward button { grid-column: 1 / -1; width: 100%; }
}
