/* NEXO tutorial popup - adapted from the 3333 update package. */
.nexo-tutorial-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 8, 16, .66);
  backdrop-filter: blur(8px);
}

.nexo-tutorial-modal.is-open {
  display: flex;
}

.nexo-tutorial-dialog {
  position: relative;
  width: min(390px, 92vw);
  max-height: min(92vh, 820px);
  display: grid;
  grid-template-rows: minmax(0, auto) auto;
  overflow: hidden;
  border-radius: 16px;
  background: #071016;
  box-shadow: 0 26px 80px rgba(0,0,0,.42);
}

.nexo-tutorial-video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: min(68vh, 640px);
  overflow: hidden;
  background: #000;
}

.nexo-tutorial-dialog::before {
  display: none;
  content: none;
}

.nexo-tutorial-dialog::after {
  display: none;
  content: none;
}

.nexo-tutorial-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
  object-fit: cover;
  pointer-events: none;
}

.nexo-tutorial-feedback {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff, #eef6f7);
  color: #13212a;
  cursor: default;
}

.nexo-tutorial-feedback-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 10px;
}

.nexo-tutorial-feedback-head strong {
  font-size: 15px;
  line-height: 1;
}

.nexo-tutorial-feedback-head span {
  color: #5c6b74;
  font-size: 11px;
  font-weight: 900;
}

.nexo-tutorial-stars {
  display: grid;
  grid-template-columns: repeat(5, 34px);
  gap: 4px;
}

.nexo-tutorial-stars button {
  width: 34px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(19,33,42,.12);
  border-radius: 8px;
  background: #fff;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}

.nexo-tutorial-stars button.is-active {
  color: #f0c84b;
  border-color: rgba(240,200,75,.56);
  background: #fff9db;
  text-shadow: 0 2px 9px rgba(240,200,75,.28);
}

.nexo-tutorial-feedback textarea {
  width: 100%;
  min-height: 58px;
  resize: vertical;
  padding: 9px 10px;
  border: 1px solid rgba(19,33,42,.14);
  border-radius: 8px;
  background: #fff;
  color: #13212a;
  font: 800 12px/1.35 Arial, sans-serif;
}

.nexo-tutorial-feedback-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.nexo-tutorial-feedback-actions button {
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #10b36b;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
}

.nexo-tutorial-feedback-actions span {
  min-width: 0;
  color: #0f7a4e;
  font-size: 12px;
  font-weight: 900;
}

.nexo-tutorial-dialog {
  cursor: pointer;
}

.nexo-tutorial-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: #000;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  -webkit-text-stroke: 1px #fff;
  text-shadow:
    0 1px 0 #fff,
    1px 0 0 #fff,
    0 -1px 0 #fff,
    -1px 0 0 #fff;
  font: 900 30px/1 Arial, sans-serif;
}

.nexo-tutorial-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.nexo-tutorial-mute {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.42);
  box-shadow: 0 6px 18px rgba(0,0,0,.24);
  cursor: pointer;
}

.nexo-tutorial-mute svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.nexo-tutorial-mute .mic-slash {
  display: none;
}

.nexo-tutorial-mute.is-muted .mic-slash {
  display: block;
}

.nexo-tutorial-mute:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.nexo-tutorial-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 86px;
  height: 86px;
  display: none;
  place-items: center;
  border: 0;
  color: #000;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.nexo-tutorial-play.is-visible {
  display: grid;
}

.nexo-tutorial-play svg {
  width: 74px;
  height: 74px;
  fill: currentColor;
  stroke: rgba(255,255,255,.88);
  stroke-linejoin: round;
  stroke-width: 1.5;
  filter: drop-shadow(0 5px 14px rgba(0,0,0,.34));
  transform: translateX(2px);
}

.nexo-tutorial-play:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .nexo-tutorial-modal {
    padding: 12px;
  }

  .nexo-tutorial-dialog {
    width: min(360px, 94vw);
    max-height: 92vh;
    border-radius: 14px;
  }

  .nexo-tutorial-video-shell {
    max-height: 58vh;
  }

  .nexo-tutorial-mute {
    right: 10px;
    bottom: 10px;
  }

  .nexo-tutorial-play {
    width: 78px;
    height: 78px;
  }

  .nexo-tutorial-play svg {
    width: 66px;
    height: 66px;
  }

  .nexo-tutorial-feedback {
    gap: 7px;
    padding: 10px;
  }

  .nexo-tutorial-feedback textarea {
    min-height: 46px;
  }
}

@supports not (aspect-ratio: 9 / 16) {
  .nexo-tutorial-video-shell {
    height: min(82vh, 690px);
  }
}
