/* Central premium de jutsus. Escopo restrito ao editor de rotação. */
#nrmt-bi-rotation {
  --jutsu-gold: #f3bd45;
  --jutsu-cyan: #f1f3ef;
  --jutsu-ink: #071015;
  --jutsu-panel: #0d171d;
  padding: 12px !important;
  background: transparent !important;
  backdrop-filter: none !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window {
  box-sizing: border-box;
  width: min(1320px, calc(100vw - 24px)) !important;
  height: min(930px, calc(100dvh - 24px)) !important;
  max-height: calc(100dvh - 24px);
  padding: 22px;
  overflow: hidden;
  border: 1px solid #9b712d !important;
  border-radius: 10px !important;
  background: linear-gradient(145deg, #101c22, #060b0e) !important;
  box-shadow: 0 34px 110px #000f, inset 0 0 0 1px #ffffff0a !important;
}

/* A moldura PNG cobre 22px das bordas. A reserva abaixo impede que ela
   esconda o topo, os controles laterais e, principalmente, o rodape. */
#nrmt-bi-rotation .nrmt-bi-rotation__window > header,
#nrmt-bi-rotation .nrmt-jutsu-hero,
#nrmt-bi-rotation .nrmt-bi-rotation__toolbar,
#nrmt-bi-rotation .nrmt-jutsu-runtime-summary,
#nrmt-bi-rotation .nrmt-build-guide,
#nrmt-bi-rotation .nrmt-build-slots,
#nrmt-bi-rotation .nrmt-bi-rotation__window > footer {
  flex: 0 0 auto;
}

#nrmt-bi-rotation .nrmt-bi-rotation__list {
  min-height: 0;
  overscroll-behavior: contain;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window > header {
  position: relative;
  z-index: 5;
  min-height: 58px;
  padding: 0 18px !important;
  border-bottom: 1px solid #795826 !important;
  background: linear-gradient(180deg, #1c2a31, #0c151a) !important;
  box-shadow: 0 7px 20px #0009;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window > header::before {
  width: 38px;
  height: 38px;
  border: 1px solid #b98636;
  border-radius: 50%;
  background: radial-gradient(circle, #563817, #16100b 68%);
  box-shadow: 0 0 20px #e8a93444, inset 0 0 0 3px #0008;
  color: #ffe18b;
  content: "術";
  font-size: 18px;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window > header > div {
  margin: 0 auto 0 12px !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window > header small {
  color: #8ea1a8 !important;
  font-size:11px !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window > header h2 {
  margin-top: 4px;
  color: #ffe08b !important;
  font-size: 18px !important;
  text-shadow: 0 2px 7px #000;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window > header > button {
  width: 34px !important;
  height: 34px !important;
  border: 1px solid #8a4c38 !important;
  border-radius: 50% !important;
  background: #321c18 !important;
  color: #ffd5c8 !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window > header > button:hover {
  border-color: #e4805d !important;
  background: #5b281f !important;
}

/* Componentes internos usam o mesmo kit PNG da coleção de personagens. */
#nrmt-bi-rotation .nrmt-bi-rotation__window > header > button.nrmt-ui-icon-close {
  border: 0 !important;
  border-radius: 3px !important;
  background: transparent var(--nrmt-ornate-close) center / contain no-repeat !important;
  color: transparent !important;
}

#nrmt-bi-rotation .nrmt-jutsu-hero {
  position: relative;
  isolation: isolate;
  min-height: 208px;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid #40515b;
  background-image: linear-gradient(90deg, #02070af7 0%, #041017ed 32%, #06101782 52%, #050b0e19 76%, #0710158f 100%), url('/assets/branding/shinobi-archive-ui-v3/jutsus-technique-keyart-v3.png?v=1');
  background-position: center 43%;
  background-size: cover;
}

#nrmt-bi-rotation .nrmt-jutsu-hero__keyart {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(circle at 69% 58%, #38cfff38, transparent 22%), linear-gradient(115deg, transparent 50%, #8c42ff13 72%, #45ffbc14);
  pointer-events: none;
}

#nrmt-bi-rotation .nrmt-jutsu-hero::after {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 54px;
  background: linear-gradient(transparent, #071015db);
  content: "";
}

#nrmt-bi-rotation .nrmt-jutsu-hero__copy {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(48%, 590px);
  max-width: 590px;
  padding: 24px 32px;
  text-shadow: 0 2px 8px #000;
}

#nrmt-bi-rotation .nrmt-jutsu-hero__copy > small {
  color: #f1f3ef !important;
  font-size:12px !important;
  letter-spacing: .22em !important;
}

#nrmt-bi-rotation .nrmt-jutsu-hero__copy h3 {
  margin: 5px 0 7px;
  color: #fff2c1;
  font: italic 27px NinjaTitle, Georgia, serif;
  letter-spacing: .035em;
}

#nrmt-bi-rotation .nrmt-jutsu-hero__copy p {
  max-width: 480px;
  margin: 0;
  color: #a8bbc4;
  font-size: 10px;
  line-height: 1.55;
}

#nrmt-bi-rotation .nrmt-jutsu-hero__copy > .nrmt-jutsu-hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

#nrmt-bi-rotation .nrmt-jutsu-hero__copy > .nrmt-jutsu-hero__features b {
  padding: 5px 8px;
  border: 1px solid #d7dad5;
  border-radius: 12px;
  background: #07131acc;
  color: #f1f3ef;
  font-size:11px;
  letter-spacing: .09em;
}

#nrmt-bi-rotation .nrmt-jutsu-hero__identity {
  width: fit-content;
  min-width: 236px;
  margin-top: 11px;
  padding: 7px 11px;
  border: 1px solid #d7dad5;
  border-left: 3px solid #f1f3ef;
  border-radius: 0 5px 5px 0;
  background: linear-gradient(90deg, #061118ec, #08141cae);
  box-shadow: 0 7px 20px #000a, inset 0 0 16px #ffffff0c;
}

#nrmt-bi-rotation .nrmt-jutsu-hero__identity small,
#nrmt-bi-rotation .nrmt-jutsu-hero__identity b,
#nrmt-bi-rotation .nrmt-jutsu-hero__identity em {
  display: block;
  font-style: normal;
}

#nrmt-bi-rotation .nrmt-jutsu-hero__identity small {
  color: #f1f3ef !important;
  font-size:10px !important;
  letter-spacing: .15em !important;
}

#nrmt-bi-rotation .nrmt-jutsu-hero__identity b {
  margin-top: 3px;
  color: #fff0b9;
  font: italic 12px NinjaTitle, Georgia, serif;
}

#nrmt-bi-rotation .nrmt-jutsu-hero__identity em {
  margin-top: 3px;
  color: #8fa3ab;
  font-size:11px;
  letter-spacing: .06em;
}

#nrmt-bi-rotation .nrmt-bi-rotation__toolbar {
  min-height: 48px;
  padding: 7px 16px !important;
  border-bottom: 1px solid #293942 !important;
  background: #081116 !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__toolbar input {
  height: 34px;
  padding: 0 12px 0 34px !important;
  border: 1px solid #344a55 !important;
  border-radius: 17px !important;
  background: linear-gradient(90deg, #0a151b, #071015) !important;
  color: #d8e8ee !important;
  font-size:12px;
}

#nrmt-bi-rotation .nrmt-bi-rotation__toolbar b {
  min-width: 112px;
  padding: 8px 10px;
  border: 1px solid #87652d;
  border-radius: 4px;
  background: linear-gradient(180deg, #332714, #171209);
  color: #ffd66f !important;
  text-align: center;
}

#nrmt-bi-rotation .nrmt-bi-rotation__toolbar b.is-warning {
  border-color: #a6443a;
  background: #391918;
  color: #ff998c !important;
}

#nrmt-bi-rotation .nrmt-jutsu-runtime-summary {
  grid-template-columns: 50px minmax(150px, .65fr) 120px minmax(250px, 1.2fr) !important;
  min-height: 58px;
  padding: 7px 16px !important;
  border-bottom: 1px solid #354751 !important;
  background: linear-gradient(90deg, #101d23, #13212a, #0b151a) !important;
}

#nrmt-bi-rotation .nrmt-jutsu-runtime-summary > img {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 3px 4px #000a);
}

#nrmt-bi-rotation .nrmt-jutsu-runtime-seal {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #f1f3ef;
  border-radius: 50%;
  background: radial-gradient(circle, #4b4e4b, #071116 70%);
  box-shadow: 0 0 15px #ffffff42, inset 0 0 0 3px #020608b0;
  color: #ffffff;
  font: 18px Georgia, serif;
  font-style: normal;
  text-shadow: 0 0 8px #ffffff;
}

#nrmt-bi-rotation .nrmt-jutsu-runtime-summary > span {
  padding: 7px 9px;
  border-left: 2px solid #e7eae5 !important;
  border-radius: 0 4px 4px 0;
  background: #071116c7 !important;
}

#nrmt-bi-rotation .nrmt-jutsu-runtime-summary .nrmt-jutsu-runtime-next {
  border-left-color: #eab447 !important;
}

#nrmt-bi-rotation .nrmt-build-guide {
  min-height: 36px;
  padding: 6px 16px;
  border-bottom: 1px solid #32434b;
  background: linear-gradient(90deg, #0d181e, #101914);
}

#nrmt-bi-rotation .nrmt-build-guide span {
  color: #f1f3ef;
}

#nrmt-bi-rotation .nrmt-build-guide b {
  color: #ffe18a;
}

#nrmt-bi-rotation .nrmt-build-guide small {
  color: #7f9097;
}

#nrmt-bi-rotation .nrmt-build-slots {
  gap: 9px;
  padding: 9px 16px;
  border-bottom: 1px solid #33454e;
  background: linear-gradient(180deg, #0b161c, #071015);
}

#nrmt-bi-rotation .nrmt-build-slot {
  height: 62px;
  grid-template-columns: 46px minmax(0, 1fr);
  padding: 6px 9px;
  border: 1px dashed #3e5661;
  border-radius: 6px;
  background: #0c171c var(--nrmt-ornate-button-gold) center / 100% 100% no-repeat;
}

#nrmt-bi-rotation .nrmt-build-slot > img {
  width: 44px;
  height: 44px;
  border-radius: 5px;
  object-fit: contain;
}

#nrmt-bi-rotation .nrmt-build-slot.is-filled {
  border-color: #eef1ed;
  background: #0c171c var(--nrmt-ornate-button-cyan) center / 100% 100% no-repeat;
  box-shadow: 0 0 0 1px #eef1ed55, 0 5px 14px #0008;
}

#nrmt-bi-rotation .nrmt-build-slot.is-jutsu-next {
  border-color: #ffe17f !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__list {
  padding: 10px 14px 15px !important;
  background: radial-gradient(circle at 80% 0, #102a354c, transparent 34%), #071015 !important;
  scrollbar-color: #8f6b2f #03080b;
}

#nrmt-bi-rotation .nrmt-bi-rotation-row.nrmt-build-spell {
  min-height: 122px;
  grid-template-columns: 38px 82px minmax(370px, 1fr) 155px 116px !important;
  gap: 11px !important;
  margin-bottom: 9px !important;
  padding: 10px 11px !important;
  overflow: hidden;
  border: 1px solid #324852 !important;
  border-radius: 7px !important;
  background: #0d171d var(--nrmt-ornate-button-gold) center / 100% 100% no-repeat !important;
  box-shadow: 0 5px 17px #0007 !important;
  opacity: 1;
  filter: none;
}

#nrmt-bi-rotation .nrmt-bi-rotation-row.nrmt-build-spell::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--spell-accent);
  box-shadow: 0 0 13px var(--spell-accent);
  content: "";
}

#nrmt-bi-rotation .nrmt-bi-rotation-row.nrmt-build-spell:hover {
  border-color: #597480 !important;
  filter: brightness(1.08);
}

#nrmt-bi-rotation .nrmt-bi-rotation-row.nrmt-build-spell.is-selected {
  border-color: #eef1ed !important;
  background: #0d171d var(--nrmt-ornate-button-cyan) center / 100% 100% no-repeat !important;
  box-shadow: 0 0 0 1px #eef1ed55, 0 0 18px #eef1ed20 !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation-row.nrmt-build-spell.is-locked {
  opacity: .46 !important;
  filter: grayscale(.75);
}

#nrmt-bi-rotation .nrmt-build-spell__slot b {
  width: 30px;
  height: 30px;
  border-color: #5c717a;
  background: #081116;
  color: #f2bd4b;
  font-size: 14px;
}

#nrmt-bi-rotation .nrmt-build-spell__icon {
  position: relative;
  width: 78px;
  height: 78px;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: #070b0e var(--nrmt-ornate-portrait-gold) center / 100% 100% no-repeat;
  box-shadow: inset 0 0 15px #000a, 0 7px 15px #0009;
}

#nrmt-bi-rotation .nrmt-build-spell__icon > img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

#nrmt-bi-rotation .nrmt-build-spell.is-selected .nrmt-build-spell__icon {
  background-image: var(--nrmt-ornate-portrait-cyan);
}

#nrmt-bi-rotation .nrmt-build-spell__icon .nrmt-jutsu-cd-time {
  padding: 4px 5px;
  border: 1px solid #ffffff28;
  border-radius: 4px;
  font-size:12px;
}

#nrmt-bi-rotation .nrmt-build-spell__body > header {
  min-width: 0;
  gap: 7px;
}

#nrmt-bi-rotation .nrmt-build-spell__body strong {
  font-size: 13px !important;
}

#nrmt-bi-rotation .nrmt-build-spell__body em {
  padding: 4px 6px;
  border-radius: 9px;
  background: #071015;
  font-size:11px;
}

#nrmt-bi-rotation .nrmt-build-spell__state {
  margin-left: auto;
  padding: 4px 6px;
  border: 1px solid #435963;
  border-radius: 9px;
  background: #071015;
  color: #8ca0a9 !important;
  font-size:11px !important;
  font-weight: 800;
  letter-spacing: .05em;
}

#nrmt-bi-rotation .is-selected .nrmt-build-spell__state {
  border-color: #8a662b;
  color: #ffd473 !important;
}

#nrmt-bi-rotation .nrmt-build-spell__body p {
  margin: 7px 0 9px;
  color: #96a8af;
  font-size:12px;
}

#nrmt-bi-rotation .nrmt-build-spell__metrics {
  grid-template-columns: 58px 68px 76px 66px minmax(104px, 1fr) !important;
  gap: 5px !important;
}

#nrmt-bi-rotation .nrmt-build-spell__metrics > span {
  padding: 5px 6px;
  border: 1px solid #293c45;
  border-radius: 3px;
  background: #071116;
}

#nrmt-bi-rotation .nrmt-build-spell__metrics small {
  color: #607780;
  font-size:10px;
}

#nrmt-bi-rotation .nrmt-build-spell__metrics b {
  color: #dce8ec;
  font-size:12px;
}

#nrmt-bi-rotation .nrmt-build-spell__result {
  min-height: 64px;
  justify-content: center;
  padding: 10px 12px;
  border-left: 2px solid var(--spell-accent);
  border-radius: 0 5px 5px 0;
  background: linear-gradient(90deg, #0b171c, #071015);
}

#nrmt-bi-rotation .nrmt-build-spell__result b {
  font-size: 10px;
}

#nrmt-bi-rotation .nrmt-build-spell__actions button {
  height: 31px !important;
  border-radius: 4px !important;
  font-size:11px !important;
}

#nrmt-bi-rotation .nrmt-build-spell__actions .nrmt-build-spell__toggle {
  border-color: #a57a2d !important;
  background: linear-gradient(180deg, #9b712d, #4d3515) !important;
  color: #fff0c4 !important;
}

#nrmt-bi-rotation .nrmt-ui-ornate-button:not(.nrmt-ui-icon-close) {
  border: 0 !important;
  background: transparent var(--nrmt-ornate-button-gold) center / 100% 100% no-repeat !important;
  box-shadow: 0 3px 8px #0008 !important;
}

#nrmt-bi-rotation .nrmt-ui-ornate-button.nrmt-ui-action-config,
#nrmt-bi-rotation .nrmt-ui-ornate-button.nrmt-ui-action-back {
  background-image: var(--nrmt-ornate-button-cyan) !important;
}

#nrmt-bi-rotation .nrmt-ui-ornate-button.nrmt-ui-action-danger {
  color: #f7e7bd !important;
  filter: none;
}

#nrmt-bi-rotation .nrmt-ui-ornate-button:hover:not(:disabled) {
  filter: brightness(1.15) !important;
  transform: translateY(-1px);
}

#nrmt-bi-rotation .nrmt-ui-ornate-button.nrmt-ui-action-danger:hover:not(:disabled) {
  filter: brightness(1.15) !important;
}

#nrmt-bi-rotation .nrmt-build-spell.is-selected .nrmt-build-spell__toggle {
  border-color: transparent !important;
  background: transparent var(--nrmt-ornate-button-cyan) center / 100% 100% no-repeat !important;
  color: #f1f3ef !important;
}

#nrmt-bi-rotation .nrmt-build-spell .nrmt-jutsu-row-runtime {
  right: 127px !important;
  bottom: 6px !important;
  padding: 2px 5px;
  border-radius: 7px;
  background: #071015d9;
  font-size:11px;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window > footer {
  min-height: 54px;
  padding: 9px 15px !important;
  border-top: 1px solid #40515a !important;
  background: linear-gradient(180deg, #101c22, #081116) !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window > footer > span {
  min-width: 0;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window > footer button {
  min-width: 150px;
  height: 34px !important;
  border-radius: 4px !important;
}

@media (max-width: 1040px) {
  #nrmt-bi-rotation .nrmt-jutsu-hero {
    min-height: 184px;
    background-position: 58% 43%;
  }
  #nrmt-bi-rotation .nrmt-jutsu-hero__copy {
    width: 51%;
    padding: 18px 23px;
  }
  #nrmt-bi-rotation .nrmt-bi-rotation-row.nrmt-build-spell {
    grid-template-columns: 34px 70px minmax(260px, 1fr) 112px !important;
  }
  #nrmt-bi-rotation .nrmt-build-spell__icon {
    width: 66px;
    height: 66px;
  }
  #nrmt-bi-rotation .nrmt-build-spell__icon > img {
    width: 60px;
    height: 60px;
  }
  #nrmt-bi-rotation .nrmt-build-spell__result {
    display: none !important;
  }
  #nrmt-bi-rotation .nrmt-build-spell__actions {
    grid-column: 4;
  }
}

@media (max-width: 760px) {
  #nrmt-bi-rotation {
    padding: 3px !important;
  }
  #nrmt-bi-rotation .nrmt-bi-rotation__window {
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh;
    padding: 16px;
    border-radius: 0 !important;
  }
  #nrmt-bi-rotation .nrmt-jutsu-hero {
    min-height: 146px;
    background-position: 66% 42%;
  }
  #nrmt-bi-rotation .nrmt-jutsu-hero__copy {
    width: 64%;
    padding: 13px 16px;
  }
  #nrmt-bi-rotation .nrmt-jutsu-hero__copy h3 {
    font-size: 19px;
  }
  #nrmt-bi-rotation .nrmt-jutsu-hero__copy p,
  #nrmt-bi-rotation .nrmt-jutsu-hero__copy > .nrmt-jutsu-hero__features {
    display: none;
  }
  #nrmt-bi-rotation .nrmt-jutsu-hero__identity {
    min-width: 180px;
    margin-top: 8px;
    padding: 5px 8px;
  }
  #nrmt-bi-rotation .nrmt-jutsu-runtime-summary {
    grid-template-columns: 42px 1fr 86px !important;
  }
  #nrmt-bi-rotation .nrmt-jutsu-runtime-summary .nrmt-jutsu-runtime-next {
    display: none;
  }
  #nrmt-bi-rotation .nrmt-build-slots {
    grid-template-columns: repeat(2, 1fr);
  }
  #nrmt-bi-rotation .nrmt-bi-rotation-row.nrmt-build-spell {
    grid-template-columns: 30px 62px minmax(0, 1fr) !important;
  }
  #nrmt-bi-rotation .nrmt-build-spell__icon {
    width: 58px;
    height: 58px;
  }
  #nrmt-bi-rotation .nrmt-build-spell__icon > img {
    width: 54px;
    height: 54px;
  }
  #nrmt-bi-rotation .nrmt-build-spell__state,
  #nrmt-bi-rotation .nrmt-build-spell__body p {
    display: none;
  }
  #nrmt-bi-rotation .nrmt-build-spell__metrics {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  #nrmt-bi-rotation .nrmt-build-spell__metrics > span:nth-child(n+4) {
    display: none;
  }
  #nrmt-bi-rotation .nrmt-build-spell__actions {
    grid-column: 1 / -1;
    display: flex !important;
  }
  #nrmt-bi-rotation .nrmt-build-spell__actions button {
    flex: 1;
  }
}

@media (max-width: 460px) {
  #nrmt-bi-rotation .nrmt-jutsu-hero {
    background-position: 72% 42%;
  }
  #nrmt-bi-rotation .nrmt-jutsu-hero__copy { width: 76%; }
  #nrmt-bi-rotation .nrmt-jutsu-hero__copy h3 {
    font-size: 16px;
  }
  #nrmt-bi-rotation .nrmt-bi-rotation__toolbar {
    gap: 5px;
    padding: 6px 8px !important;
  }
  #nrmt-bi-rotation .nrmt-bi-rotation__toolbar b {
    min-width: 90px;
    font-size:11px;
  }
  #nrmt-bi-rotation .nrmt-build-guide small {
    display: none;
  }
  #nrmt-bi-rotation .nrmt-build-slot {
    height: 56px;
    grid-template-columns: 38px minmax(0, 1fr);
  }
  #nrmt-bi-rotation .nrmt-build-slot > img {
    width: 36px;
    height: 36px;
  }
  #nrmt-bi-rotation .nrmt-bi-rotation__window > footer > span,
  #nrmt-bi-rotation .nrmt-bi-rotation__window > footer button[data-bi-action="rotation-clear"] {
    display: none;
  }
  #nrmt-bi-rotation .nrmt-bi-rotation__window > footer button[data-bi-action="rotation-close"] {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #nrmt-bi-rotation .nrmt-bi-rotation__window,
  #nrmt-bi-rotation .nrmt-build-spell {
    animation: none !important;
    transition: none !important;
  }
}

/* Base idêntica à coleção de personagens: preto neutro, branco e dourado. */
#nrmt-bi-rotation {
  background: radial-gradient(circle at 50% 12%, #6b54201c, transparent 42%), #020304f2 !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window {
  background: #070a0c !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window > header,
#nrmt-bi-rotation .nrmt-bi-rotation__toolbar,
#nrmt-bi-rotation .nrmt-jutsu-runtime-summary,
#nrmt-bi-rotation .nrmt-build-guide,
#nrmt-bi-rotation .nrmt-build-slots,
#nrmt-bi-rotation .nrmt-bi-rotation__list,
#nrmt-bi-rotation .nrmt-bi-rotation__window > footer {
  background-color: #080b0d !important;
  background-image: none;
}

#nrmt-bi-rotation .nrmt-bi-rotation__list {
  scrollbar-color: #c59638 #07090a !important;
}

#nrmt-bi-rotation .nrmt-build-spell.is-heal,
#nrmt-bi-rotation .nrmt-build-spell.is-buff {
  --spell-accent: #f1f3ef;
}

#nrmt-bi-rotation .nrmt-build-spell.is-damage {
  --spell-accent: #d5a23c;
}

/* V3 · Arquivo de Tecnicas. Mesma materia, escala e hierarquia de Personagens. */
#nrmt-bi-rotation {
  --jutsu-gold: #c79545;
  --jutsu-cyan: #79bfd8;
  --jutsu-ink: #070a0c;
  --jutsu-panel: #0c1114;
  padding: 18px !important;
  background: transparent !important;
  backdrop-filter: none !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window {
  box-sizing: border-box;
  width: min(1370px, calc(100vw - 38px)) !important;
  height: min(900px, calc(100dvh - 34px)) !important;
  max-height: calc(100dvh - 34px) !important;
  padding: 28px 26px 25px !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 3px !important;
  background:
    radial-gradient(circle at 76% 0, rgba(121, 191, 216, .06), transparent 30%),
    linear-gradient(145deg, #0e1417, #050809 70%) !important;
  box-shadow: 0 34px 110px rgba(0, 0, 0, .88), 0 0 42px rgba(199, 149, 69, .08) !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__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-bi-rotation .nrmt-bi-rotation__window > header,
#nrmt-bi-rotation .nrmt-jutsu-hero,
#nrmt-bi-rotation .nrmt-bi-rotation__toolbar,
#nrmt-bi-rotation .nrmt-jutsu-runtime-summary,
#nrmt-bi-rotation .nrmt-build-guide,
#nrmt-bi-rotation .nrmt-build-slots,
#nrmt-bi-rotation .nrmt-bi-rotation__list,
#nrmt-bi-rotation .nrmt-bi-rotation__window > footer {
  position: relative;
  z-index: 2;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window > header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  height: 60px !important;
  min-height: 60px !important;
  flex: 0 0 60px !important;
  padding: 0 15px 0 18px !important;
  border: 1px solid rgba(199, 149, 69, .24) !important;
  border-bottom-color: rgba(199, 149, 69, .34) !important;
  border-radius: 2px 2px 0 0 !important;
  background: linear-gradient(180deg, rgba(18, 26, 29, .98), rgba(7, 12, 14, .98)) !important;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .48) !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window > header::before {
  width: 38px !important;
  height: 38px !important;
  border: 1px solid rgba(199, 149, 69, .58) !important;
  border-radius: 2px !important;
  background: #0b1012 !important;
  box-shadow: inset 0 0 12px rgba(199, 149, 69, .1) !important;
  color: #e7c77f !important;
  content: "術" !important;
  font-size: 17px !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window > header small {
  color: #9aa5a5 !important;
  font-size:11px !important;
  letter-spacing: .15em !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window > header h2 {
  margin-top: 4px !important;
  color: #f0ca7a !important;
  font-size: 18px !important;
  text-shadow: 0 2px 7px #000 !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window > header > button.nrmt-ui-icon-close {
  width: 38px !important;
  height: 38px !important;
  border: 0 !important;
  background: transparent var(--nrmt-archive-close) center / contain no-repeat !important;
}

#nrmt-bi-rotation .nrmt-jutsu-hero {
  min-height: 190px !important;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(121, 191, 216, .17) !important;
  border-top: 0 !important;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 8, .98) 0%, rgba(3, 8, 10, .91) 36%, rgba(4, 8, 10, .3) 70%, rgba(4, 8, 10, .64) 100%),
    url('/assets/branding/shinobi-archive-ui-v3/jutsus-technique-keyart-v3.png?v=1') !important;
  background-position: center, center 47% !important;
  background-size: cover, cover !important;
}

#nrmt-bi-rotation .nrmt-jutsu-hero__keyart {
  background:
    radial-gradient(circle at 76% 60%, rgba(121, 191, 216, .08), transparent 23%),
    linear-gradient(115deg, transparent 53%, rgba(199, 149, 69, .05) 73%, rgba(121, 191, 216, .035)) !important;
}

#nrmt-bi-rotation .nrmt-jutsu-hero::after {
  height: 48px !important;
  background: linear-gradient(transparent, rgba(5, 9, 11, .92)) !important;
}

#nrmt-bi-rotation .nrmt-jutsu-hero__copy {
  width: min(47%, 580px) !important;
  max-width: 580px !important;
  padding: 22px 30px !important;
}

#nrmt-bi-rotation .nrmt-jutsu-hero__copy > small {
  color: #79bfd8 !important;
  font-size:11px !important;
  letter-spacing: .2em !important;
}

#nrmt-bi-rotation .nrmt-jutsu-hero__copy h3 {
  margin: 5px 0 7px !important;
  color: #ead49c !important;
  font-size: 25px !important;
}

#nrmt-bi-rotation .nrmt-jutsu-hero__copy p {
  color: #a0acad !important;
  font-size:12px !important;
}

#nrmt-bi-rotation .nrmt-jutsu-hero__copy > .nrmt-jutsu-hero__features b {
  border: 1px solid rgba(199, 149, 69, .3) !important;
  border-radius: 2px !important;
  background: rgba(5, 10, 12, .84) !important;
  color: #d8c49b !important;
}

#nrmt-bi-rotation .nrmt-jutsu-hero__identity {
  min-width: 230px !important;
  margin-top: 10px !important;
  padding: 8px 11px !important;
  border: 1px solid rgba(121, 191, 216, .27) !important;
  border-left: 3px solid #79bfd8 !important;
  border-radius: 0 2px 2px 0 !important;
  background: rgba(5, 11, 14, .87) !important;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .6) !important;
}

#nrmt-bi-rotation .nrmt-jutsu-hero__identity small { color: #79bfd8 !important; }
#nrmt-bi-rotation .nrmt-jutsu-hero__identity b { color: #ead49c !important; }

#nrmt-bi-rotation .nrmt-bi-rotation__toolbar {
  min-height: 50px !important;
  padding: 8px 14px !important;
  border: 1px solid rgba(121, 191, 216, .14) !important;
  border-top: 0 !important;
  background: #080d0f !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__toolbar input {
  height: 34px !important;
  padding: 0 12px 0 34px !important;
  border: 1px solid rgba(121, 191, 216, .26) !important;
  border-radius: 2px !important;
  background: #05090b !important;
  color: #d6dedc !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__toolbar input:focus {
  border-color: #c79545 !important;
  box-shadow: 0 0 0 2px rgba(199, 149, 69, .09) !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__toolbar b {
  min-width: 116px !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(199, 149, 69, .27) !important;
  border-radius: 2px !important;
  background: #11120f !important;
  color: #e1bc70 !important;
}

#nrmt-bi-rotation .nrmt-jutsu-runtime-summary {
  min-height: 58px !important;
  padding: 7px 14px !important;
  border-bottom: 1px solid rgba(121, 191, 216, .16) !important;
  background: linear-gradient(90deg, #0d1518, #101719, #080d0f) !important;
}

#nrmt-bi-rotation .nrmt-jutsu-runtime-seal {
  border-color: rgba(121, 191, 216, .5) !important;
  background: radial-gradient(circle, #1b2a2f, #060a0c 70%) !important;
  box-shadow: 0 0 12px rgba(121, 191, 216, .15), inset 0 0 0 3px rgba(0, 0, 0, .65) !important;
  color: #cce5ec !important;
  text-shadow: 0 0 8px rgba(121, 191, 216, .42) !important;
}

#nrmt-bi-rotation .nrmt-jutsu-runtime-summary > span {
  border-left-color: #79bfd8 !important;
  border-radius: 0 2px 2px 0 !important;
  background: rgba(5, 10, 12, .78) !important;
}

#nrmt-bi-rotation .nrmt-jutsu-runtime-summary .nrmt-jutsu-runtime-next {
  border-left-color: #c79545 !important;
}

#nrmt-bi-rotation .nrmt-build-guide {
  min-height: 35px !important;
  padding: 6px 15px !important;
  border-bottom: 1px solid rgba(199, 149, 69, .18) !important;
  background: #0b1113 !important;
}

#nrmt-bi-rotation .nrmt-build-guide span { color: #79bfd8 !important; }
#nrmt-bi-rotation .nrmt-build-guide b { color: #e7c77f !important; }

#nrmt-bi-rotation .nrmt-build-slots {
  gap: 9px !important;
  padding: 9px 15px !important;
  border-bottom: 1px solid rgba(121, 191, 216, .16) !important;
  background: #080d0f !important;
}

#nrmt-bi-rotation .nrmt-build-slot {
  box-sizing: border-box;
  height: 64px !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  padding: 7px 10px !important;
  border: 1px solid transparent !important;
  border-image-source: var(--nrmt-archive-panel-frame) !important;
  border-image-slice: 104 122 !important;
  border-image-width: 10px !important;
  border-radius: 2px !important;
  background: #0b1113 !important;
}

#nrmt-bi-rotation .nrmt-build-slot.is-empty {
  border-image-source: none !important;
  border: 1px dashed rgba(121, 191, 216, .22) !important;
}

#nrmt-bi-rotation .nrmt-build-slot.is-filled {
  background: radial-gradient(circle at 15% 50%, rgba(121, 191, 216, .11), transparent 37%), #0b1113 !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .44) !important;
}

#nrmt-bi-rotation .nrmt-build-slot.is-jutsu-next {
  box-shadow: inset 3px 0 #c79545, 0 5px 14px rgba(0, 0, 0, .44) !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__list {
  padding: 10px 13px 14px !important;
  background: radial-gradient(circle at 82% 0, rgba(121, 191, 216, .045), transparent 34%), #070b0d !important;
  scrollbar-color: #a97d3b #040708 !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation-row.nrmt-build-spell {
  box-sizing: border-box;
  min-height: 116px !important;
  grid-template-columns: 38px 80px minmax(360px, 1fr) 150px 116px !important;
  gap: 10px !important;
  margin-bottom: 9px !important;
  padding: 10px 11px !important;
  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: 11px !important;
  border-radius: 2px !important;
  background: #0b1113 !important;
  box-shadow: 0 6px 17px rgba(0, 0, 0, .42) !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation-row.nrmt-build-spell::before {
  width: 3px !important;
  background: var(--spell-accent) !important;
  box-shadow: 0 0 9px color-mix(in srgb, var(--spell-accent) 40%, transparent) !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation-row.nrmt-build-spell:hover {
  filter: brightness(1.075);
}

#nrmt-bi-rotation .nrmt-bi-rotation-row.nrmt-build-spell.is-selected {
  background: radial-gradient(circle at 13% 50%, rgba(121, 191, 216, .12), transparent 34%), #0a1115 !important;
  box-shadow: inset 3px 0 #79bfd8, 0 0 0 1px rgba(121, 191, 216, .24), 0 7px 18px rgba(0, 0, 0, .5) !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation-row.nrmt-build-spell.is-locked {
  opacity: .45 !important;
  filter: grayscale(.72);
}

#nrmt-bi-rotation .nrmt-build-spell__slot b {
  border-color: rgba(121, 191, 216, .24) !important;
  background: #060a0c !important;
  color: #d4af67 !important;
}

#nrmt-bi-rotation .nrmt-build-spell__icon {
  width: 76px !important;
  height: 80px !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  border-image-source: var(--nrmt-archive-portrait-frame) !important;
  border-image-slice: 112 106 !important;
  border-image-width: 13px !important;
  border-radius: 2px !important;
  background: radial-gradient(circle, rgba(121, 191, 216, .14), transparent 66%), #060a0c !important;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, .68), 0 7px 15px rgba(0, 0, 0, .52) !important;
}

#nrmt-bi-rotation .nrmt-build-spell__icon > img {
  width: 64px !important;
  height: 64px !important;
}

#nrmt-bi-rotation .nrmt-build-spell__body strong {
  color: #e4d7bd !important;
  font-size: 13px !important;
}

#nrmt-bi-rotation .nrmt-build-spell__body em,
#nrmt-bi-rotation .nrmt-build-spell__state {
  border-radius: 2px !important;
  background: #060a0c !important;
}

#nrmt-bi-rotation .nrmt-build-spell__state {
  border-color: rgba(121, 191, 216, .2) !important;
  color: #8d9999 !important;
}

#nrmt-bi-rotation .is-selected .nrmt-build-spell__state {
  border-color: rgba(121, 191, 216, .35) !important;
  color: #a9d3df !important;
}

#nrmt-bi-rotation .nrmt-build-spell__body p { color: #929e9f !important; }

#nrmt-bi-rotation .nrmt-build-spell__metrics > span {
  border-color: rgba(121, 191, 216, .14) !important;
  border-radius: 2px !important;
  background: #060a0c !important;
}

#nrmt-bi-rotation .nrmt-build-spell__metrics small { color: #657577 !important; }
#nrmt-bi-rotation .nrmt-build-spell__metrics b { color: #d5dddb !important; }

#nrmt-bi-rotation .nrmt-build-spell__result {
  border-left-color: var(--spell-accent) !important;
  border-radius: 0 2px 2px 0 !important;
  background: linear-gradient(90deg, #0a1113, #060a0c) !important;
}

#nrmt-bi-rotation .nrmt-build-spell__actions button {
  border-radius: 2px !important;
}

#nrmt-bi-rotation .nrmt-build-spell__actions .nrmt-build-spell__toggle,
#nrmt-bi-rotation .nrmt-ui-ornate-button:not(.nrmt-ui-icon-close) {
  border: 1px solid transparent !important;
  border-image-source: var(--nrmt-archive-button-frame) !important;
  border-image-slice: 56 188 !important;
  border-image-width: 8px 15px !important;
  background: linear-gradient(180deg, #11181b, #080c0e) !important;
  color: #e7d3a8 !important;
}

#nrmt-bi-rotation .nrmt-build-spell.is-selected .nrmt-build-spell__toggle {
  color: #dcb7ae !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window > footer {
  min-height: 55px !important;
  padding: 9px 14px !important;
  border: 1px solid rgba(199, 149, 69, .18) !important;
  background: linear-gradient(180deg, #101719, #070c0e) !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window > footer button {
  min-width: 154px !important;
  height: 35px !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window > footer button[data-bi-action="rotation-close"] {
  color: #c8ead5 !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window > footer button[data-bi-action="rotation-clear"] {
  color: #e8c6bd !important;
}

#nrmt-bi-rotation .nrmt-build-spell.is-heal,
#nrmt-bi-rotation .nrmt-build-spell.is-buff { --spell-accent: #79bfd8; }

#nrmt-bi-rotation .nrmt-build-spell.is-damage { --spell-accent: #c79545; }

@media (max-width: 1040px) {
  #nrmt-bi-rotation .nrmt-jutsu-hero {
    min-height: 174px !important;
    background-position: center, 61% 47% !important;
  }

  #nrmt-bi-rotation .nrmt-jutsu-hero__copy {
    width: 54% !important;
    padding: 18px 23px !important;
  }

  #nrmt-bi-rotation .nrmt-bi-rotation-row.nrmt-build-spell {
    grid-template-columns: 34px 68px minmax(250px, 1fr) 112px !important;
  }

  #nrmt-bi-rotation .nrmt-build-spell__icon {
    width: 66px !important;
    height: 70px !important;
  }

  #nrmt-bi-rotation .nrmt-build-spell__icon > img {
    width: 58px !important;
    height: 58px !important;
  }

  #nrmt-bi-rotation .nrmt-build-spell__result { display: none !important; }
  #nrmt-bi-rotation .nrmt-build-spell__actions { grid-column: 4; }
}

@media (max-width: 760px) {
  #nrmt-bi-rotation { padding: 0 !important; }

  #nrmt-bi-rotation .nrmt-bi-rotation__window {
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 18px 15px 14px !important;
    border-radius: 0 !important;
  }

  #nrmt-bi-rotation .nrmt-bi-rotation__window > .nrmt-ui-ornate-frame-layer {
    border-width: 19px !important;
    border-image-width: 19px !important;
  }

  #nrmt-bi-rotation .nrmt-jutsu-hero {
    min-height: 142px !important;
    background-position: center, 68% 46% !important;
  }

  #nrmt-bi-rotation .nrmt-jutsu-hero__copy {
    width: 67% !important;
    padding: 13px 16px !important;
  }

  #nrmt-bi-rotation .nrmt-jutsu-hero__copy h3 { font-size: 19px !important; }

  #nrmt-bi-rotation .nrmt-jutsu-hero__copy p,
  #nrmt-bi-rotation .nrmt-jutsu-hero__copy > .nrmt-jutsu-hero__features { display: none; }

  #nrmt-bi-rotation .nrmt-jutsu-hero__identity {
    min-width: 180px !important;
    margin-top: 8px !important;
    padding: 5px 8px !important;
  }

  #nrmt-bi-rotation .nrmt-jutsu-runtime-summary {
    grid-template-columns: 42px 1fr 86px !important;
  }

  #nrmt-bi-rotation .nrmt-jutsu-runtime-summary .nrmt-jutsu-runtime-next { display: none; }
  #nrmt-bi-rotation .nrmt-build-slots { grid-template-columns: repeat(2, 1fr) !important; }

  #nrmt-bi-rotation .nrmt-bi-rotation-row.nrmt-build-spell {
    grid-template-columns: 30px 60px minmax(0, 1fr) !important;
  }

  #nrmt-bi-rotation .nrmt-build-spell__icon {
    width: 58px !important;
    height: 62px !important;
  }

  #nrmt-bi-rotation .nrmt-build-spell__icon > img {
    width: 52px !important;
    height: 52px !important;
  }

  #nrmt-bi-rotation .nrmt-build-spell__state,
  #nrmt-bi-rotation .nrmt-build-spell__body p { display: none; }

  #nrmt-bi-rotation .nrmt-build-spell__metrics {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  #nrmt-bi-rotation .nrmt-build-spell__metrics > span:nth-child(n+4) { display: none; }

  #nrmt-bi-rotation .nrmt-build-spell__actions {
    grid-column: 1 / -1;
    display: flex !important;
  }

  #nrmt-bi-rotation .nrmt-build-spell__actions button { flex: 1; }
}

@media (max-width: 460px) {
  #nrmt-bi-rotation .nrmt-jutsu-hero { background-position: center, 73% 46% !important; }
  #nrmt-bi-rotation .nrmt-jutsu-hero__copy { width: 78% !important; }
  #nrmt-bi-rotation .nrmt-jutsu-hero__copy h3 { font-size: 16px !important; }

  #nrmt-bi-rotation .nrmt-bi-rotation__toolbar {
    gap: 5px !important;
    padding: 6px 8px !important;
  }

  #nrmt-bi-rotation .nrmt-bi-rotation__toolbar b {
    min-width: 92px !important;
    font-size:11px !important;
  }

  #nrmt-bi-rotation .nrmt-build-guide small { display: none; }

  #nrmt-bi-rotation .nrmt-build-slot {
    height: 57px !important;
    grid-template-columns: 38px minmax(0, 1fr) !important;
  }

  #nrmt-bi-rotation .nrmt-build-slot > img {
    width: 36px !important;
    height: 36px !important;
  }

  #nrmt-bi-rotation .nrmt-bi-rotation__window > footer > span,
  #nrmt-bi-rotation .nrmt-bi-rotation__window > footer button[data-bi-action="rotation-clear"] { display: none; }

  #nrmt-bi-rotation .nrmt-bi-rotation__window > footer button[data-bi-action="rotation-close"] { width: 100%; }
}
