/* Central premium de jutsus. Escopo restrito ao editor de rotação. */
#nrmt-bi-rotation {
  --jutsu-gold: #f3bd45;
  --jutsu-cyan: #45d8ff;
  --jutsu-ink: #071015;
  --jutsu-panel: #0d171d;
  padding: 12px !important;
  background: radial-gradient(circle at 50% 12%, #12304488, transparent 42%), #020608ee !important;
  backdrop-filter: blur(9px) saturate(.85) !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation__window {
  width: min(1320px, 98vw) !important;
  height: min(930px, 97vh) !important;
  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;
}

#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: 7px !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;
}

#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/jutsus-technique-keyart-v2.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: #4ddcff !important;
  font-size: 8px !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 #3a6776;
  border-radius: 12px;
  background: #07131acc;
  color: #91eaff;
  font-size: 6px;
  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 #45717e;
  border-left: 3px solid #4fddff;
  border-radius: 0 5px 5px 0;
  background: linear-gradient(90deg, #061118ec, #08141cae);
  box-shadow: 0 7px 20px #000a, inset 0 0 16px #3acfff0c;
}

#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: #5bdcf8 !important;
  font-size: 5px !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: 6px;
  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: 9px;
}

#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 #49cce9;
  border-radius: 50%;
  background: radial-gradient(circle, #184c5b, #071116 70%);
  box-shadow: 0 0 15px #44dafa4a, inset 0 0 0 3px #020608b0;
  color: #bff5ff;
  font: 18px Georgia, serif;
  font-style: normal;
  text-shadow: 0 0 8px #62e2ff;
}

#nrmt-bi-rotation .nrmt-jutsu-runtime-summary > span {
  padding: 7px 9px;
  border-left: 2px solid #3ebedc !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: #62dffb;
}

#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;
}

#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: #8b682d;
  background: linear-gradient(135deg, #2b2314, #0d191d 70%);
  box-shadow: inset 3px 0 #e9b442, 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: linear-gradient(135deg, #15232a, #0a1318 76%) !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;
  background: linear-gradient(135deg, #1a2d36, #0b151a 76%) !important;
}

#nrmt-bi-rotation .nrmt-bi-rotation-row.nrmt-build-spell.is-selected {
  border-color: #c39239 !important;
  background: linear-gradient(135deg, #302716, #102027 70%) !important;
  box-shadow: inset 4px 0 #f0bc4e, 0 0 18px #e3aa3b2e !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: 1px solid #536d78;
  border-radius: 9px;
  background: radial-gradient(circle, #263d48, #050b0e 72%);
  box-shadow: inset 0 0 15px #000a, 0 7px 15px #0009;
}

#nrmt-bi-rotation .nrmt-build-spell__icon > img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

#nrmt-bi-rotation .nrmt-build-spell__icon .nrmt-jutsu-cd-time {
  padding: 4px 5px;
  border: 1px solid #ffffff28;
  border-radius: 4px;
  font-size: 8px;
}

#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: 6px;
}

#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: 6px !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: 8px;
}

#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: 5px;
}

#nrmt-bi-rotation .nrmt-build-spell__metrics b {
  color: #dce8ec;
  font-size: 8px;
}

#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: 7px !important;
}

#nrmt-bi-rotation .nrmt-build-spell__actions .nrmt-build-spell__toggle {
  border-color: #2e89a2 !important;
  background: linear-gradient(180deg, #277d92, #14404c) !important;
  color: #d7f8ff !important;
}

#nrmt-bi-rotation .nrmt-build-spell.is-selected .nrmt-build-spell__toggle {
  border-color: #8b4f3d !important;
  background: linear-gradient(180deg, #713b2f, #3c211c) !important;
  color: #ffd0bf !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: 6px;
}

#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 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: 100vh !important;
    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: 7px;
  }
  #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;
  }
}
