.tutorial-mode-toggle {
  width: 100%;
  min-height: 36px;
  justify-content: flex-start;
  border-color: rgba(var(--accent-2-rgb), 0.42);
  background: rgba(0, 0, 0, 0.42);
  color: var(--accent-3);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;

  &.is-active {
    border-color: var(--accent-3);
    background: rgba(247, 201, 72, 0.14);
    color: var(--accent-3);
  }
}

:root.is-tutorial-mode [data-tutorial-id] {
  position: relative;
}

:root.is-tutorial-mode [data-tutorial-id]::after {
  content: "?";
  position: absolute;
  z-index: 6;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent-3);
  background: #080600;
  color: var(--accent-3);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(247, 201, 72, 0.16), 0 0 18px rgba(247, 201, 72, 0.22);
  pointer-events: none;
  transition: background 140ms ease-out, color 140ms ease-out, box-shadow 140ms ease-out;
}

:root.is-tutorial-mode [data-tutorial-id].is-tutorial-focus {
  z-index: 8;
  outline: 2px solid rgba(247, 201, 72, 0.92);
  outline-offset: 3px;
  box-shadow: inset 0 0 0 1px rgba(247, 201, 72, 0.28), 0 0 0 4px rgba(247, 201, 72, 0.08), 0 0 28px rgba(247, 201, 72, 0.22);
  transition: outline-color 140ms ease-out, outline-offset 140ms ease-out, box-shadow 140ms ease-out;
}

:root.is-tutorial-mode [data-tutorial-id].is-tutorial-focus::after {
  background: var(--accent-3);
  color: #000;
  box-shadow: 0 0 0 2px #000, 0 0 24px rgba(247, 201, 72, 0.48);
}

.tutorial-mode-tooltip {
  position: fixed;
  z-index: 10020;
  width: calc(100vw - 24px);
  max-width: 340px;
  border: var(--border-width) solid var(--accent-3);
  background: #000;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  color: var(--ink);
  padding: 12px 14px;
  pointer-events: none;

  &[hidden] {
    display: none;
  }

  strong {
    display: block;
    color: var(--accent-3);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
  }

  p {
    margin: 8px 0 0;
    color: #d9e0e7;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
  }
}

@media (max-width: 1280px) {
  .tutorial-mode-tooltip {
    max-width: 300px;
  }
}
